
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>图像预处理效果对比 - Test.png</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 20px;
            background-color: #f5f5f5;
        }
        .header {
            text-align: center;
            margin-bottom: 30px;
        }
        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }
        .image-item {
            background: white;
            border-radius: 8px;
            padding: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            text-align: center;
        }
        .image-item h3 {
            margin: 0 0 10px 0;
            color: #333;
            font-size: 14px;
        }
        .image-item img {
            max-width: 100%;
            height: auto;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
        .original {
            border: 3px solid #007bff;
        }
        .method-description {
            font-size: 12px;
            color: #666;
            margin-top: 8px;
            line-height: 1.4;
        }
    </style>
</head>
<body>
    <div class="header">
        <h1>图像预处理效果对比</h1>
        <p>原始图像: Test.png</p>
        <p>生成时间: 2025-08-05 21:40:41</p>
    </div>
    <div class="grid">

        <div class="image-item original">
            <h3>Original</h3>
            <img src="original_Test.jpg" alt="original" onclick="window.open('original_Test.jpg', '_blank')">
            <div class="method-description">原始图像，未经任何处理</div>
        </div>

        <div class="image-item ">
            <h3>Grayscale</h3>
            <img src="grayscale_Test.jpg" alt="grayscale" onclick="window.open('grayscale_Test.jpg', '_blank')">
            <div class="method-description">转换为灰度图像</div>
        </div>

        <div class="image-item ">
            <h3>Contrast Enhanced</h3>
            <img src="contrast_enhanced_Test.jpg" alt="contrast_enhanced" onclick="window.open('contrast_enhanced_Test.jpg', '_blank')">
            <div class="method-description">对比度增强 (alpha=2.0)</div>
        </div>

        <div class="image-item ">
            <h3>Histogram Equalized</h3>
            <img src="histogram_equalized_Test.jpg" alt="histogram_equalized" onclick="window.open('histogram_equalized_Test.jpg', '_blank')">
            <div class="method-description">直方图均衡化</div>
        </div>

        <div class="image-item ">
            <h3>Clahe</h3>
            <img src="clahe_Test.jpg" alt="clahe" onclick="window.open('clahe_Test.jpg', '_blank')">
            <div class="method-description">CLAHE对比度限制自适应直方图均衡化</div>
        </div>

        <div class="image-item ">
            <h3>Gaussian Blur</h3>
            <img src="gaussian_blur_Test.jpg" alt="gaussian_blur" onclick="window.open('gaussian_blur_Test.jpg', '_blank')">
            <div class="method-description">高斯模糊降噪</div>
        </div>

        <div class="image-item ">
            <h3>Bilateral Filter</h3>
            <img src="bilateral_filter_Test.jpg" alt="bilateral_filter" onclick="window.open('bilateral_filter_Test.jpg', '_blank')">
            <div class="method-description">双边滤波保边降噪</div>
        </div>

        <div class="image-item ">
            <h3>Adaptive Threshold</h3>
            <img src="adaptive_threshold_Test.jpg" alt="adaptive_threshold" onclick="window.open('adaptive_threshold_Test.jpg', '_blank')">
            <div class="method-description">自适应阈值二值化</div>
        </div>

        <div class="image-item ">
            <h3>Otsu Threshold</h3>
            <img src="otsu_threshold_Test.jpg" alt="otsu_threshold" onclick="window.open('otsu_threshold_Test.jpg', '_blank')">
            <div class="method-description">Otsu自动阈值二值化</div>
        </div>

        <div class="image-item ">
            <h3>Morphology Opening</h3>
            <img src="morphology_opening_Test.jpg" alt="morphology_opening" onclick="window.open('morphology_opening_Test.jpg', '_blank')">
            <div class="method-description">形态学开运算</div>
        </div>

        <div class="image-item ">
            <h3>Morphology Closing</h3>
            <img src="morphology_closing_Test.jpg" alt="morphology_closing" onclick="window.open('morphology_closing_Test.jpg', '_blank')">
            <div class="method-description">形态学闭运算</div>
        </div>

        <div class="image-item ">
            <h3>Edge Enhancement</h3>
            <img src="edge_enhancement_Test.jpg" alt="edge_enhancement" onclick="window.open('edge_enhancement_Test.jpg', '_blank')">
            <div class="method-description">拉普拉斯边缘增强</div>
        </div>

        <div class="image-item ">
            <h3>Unsharp Mask</h3>
            <img src="unsharp_mask_Test.jpg" alt="unsharp_mask" onclick="window.open('unsharp_mask_Test.jpg', '_blank')">
            <div class="method-description">锐化滤波</div>
        </div>

        <div class="image-item ">
            <h3>Gamma Correction Bright</h3>
            <img src="gamma_correction_bright_Test.jpg" alt="gamma_correction_bright" onclick="window.open('gamma_correction_bright_Test.jpg', '_blank')">
            <div class="method-description">伽马校正提亮 (γ=0.7)</div>
        </div>

        <div class="image-item ">
            <h3>Gamma Correction Dark</h3>
            <img src="gamma_correction_dark_Test.jpg" alt="gamma_correction_dark" onclick="window.open('gamma_correction_dark_Test.jpg', '_blank')">
            <div class="method-description">伽马校正变暗 (γ=1.5)</div>
        </div>

        <div class="image-item ">
            <h3>Denoising</h3>
            <img src="denoising_Test.jpg" alt="denoising" onclick="window.open('denoising_Test.jpg', '_blank')">
            <div class="method-description">非局部均值去噪</div>
        </div>

        <div class="image-item ">
            <h3>Combined Enhancement</h3>
            <img src="combined_enhancement_Test.jpg" alt="combined_enhancement" onclick="window.open('combined_enhancement_Test.jpg', '_blank')">
            <div class="method-description">CLAHE + 双边滤波 + 锐化组合</div>
        </div>

        <div class="image-item ">
            <h3>Text Optimized</h3>
            <img src="text_optimized_Test.jpg" alt="text_optimized" onclick="window.open('text_optimized_Test.jpg', '_blank')">
            <div class="method-description">OCR文本识别专用优化</div>
        </div>

    </div>
    <div style="text-align: center; margin-top: 30px; color: #666;">
        <p>点击图像可查看原始大小</p>
        <p>建议选择文字清晰、对比度好、噪声少的预处理方法</p>
    </div>
</body>
</html>
